<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>01vw与vh单位解决适配问题</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            width: 100vw;
            height: 100vh;
            background-color: orange;
        }
        .top{
            width: 5.2vw;
            height: 9.26vh;
            background-color: red;
            margin-left: 2.6vw;
        }
        .bottom{
            width: 5.2vw;
            height: 9.26vh;
            background-color: skyblue;
            margin-left: 2.6vw;
            margin-top: 9.26vh;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="top">数据大屏</div>
        <div class="bottom">哈哈哈哈</div>
    </div>
</body>
</html>

<script>
    // vw|vh:新增单位->IE8
</script>